package com.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.pojo.EnrollInfo;
import com.example.pojo.StuInfo;
import org.springframework.stereotype.Service;

import java.util.List;

public interface EnrollInfoService {
    List<EnrollInfo> getAllEnroll();

    int addEnroll(EnrollInfo enrollInfo);

    int batchDeleteEnrollInfo(List<Integer> ids);

    String stuEnroll(StuInfo stuInfo,Integer enrollId);

    IPage<EnrollInfo> getAllEnrollPage(int currentPage, int limit);

    IPage<EnrollInfo> getEnrollByTitle(int currentPage,int limit,String enrollTitle);

    String addOrUpdateEnrollInfo(EnrollInfo enrollInfo);

    int deleteEnrollInfo(int eid);
}
